
"use strict";

/**
 * @param {Egg.Application} app - egg application
 */
module.exports = app => {
  const { router, controller } = app;



  require("./router/r_admin")(app);
  require("./router/r_journal")(app);
  require("./router/r_user")(app);
  require("./router/r_coupons")(app);
  require("./router/r_products")(app);
  require("./router/r_classes")(app);
  require("./router/r_ordersManage")(app);
  //轮播图子路由
  require("./router/r_carousels")(app);

  // 活动 -- 子路由
  require("./router/r_activitys")(app);

  // 购物车 -- 子路由
  require("./router/r_shoppings")(app);

  router.post("/tube/admin/upload", controller.cUploadFile.uploadAvatar); // 全部路由返回接口
};
